function longest<Type extends { length: number}>(a:Type,b:Type){
  if (a.length >= b.length) {
    return a
  }else{
    return b
  }
}
const longestArra = longest([1,2],[2,3,4])
const longestString = longest('felix','lu')
const notOk = longest(10,100)